package com.bwie.orders.feignService;

import com.bwie.common.utils.R;
import com.bwie.orders.vo.ActivityVo;
import com.bwie.orders.vo.GoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ShuangyeZhao
 * @date 2022/2/24
 */
@FeignClient(name = "user")
public interface GoodsService {



    @RequestMapping("/user/goods/info/{goodsId}")
    public R infogoods(@PathVariable("goodsId") Long goodsId);

    @RequestMapping("/user/activity/infoTo/{actId}")
    public R infoactive(@PathVariable("actId") Long actId);



    @RequestMapping("/user/goods/update")
    public R updateGoodFeign(@RequestBody GoodsVo goods);


    @RequestMapping("/user/activity/update")
    public R updateActFeign(@RequestBody ActivityVo activity);
}
